package com.onefinger.manager.vos
{
	[Bindable]
	[RemoteClass( alias="com.onefinger.domain.Item" )]
	public class Item
	{
		public var id:Number = 0;
		public var name:String;
		public var price:Number;
		public var showOrder:int;
		public var shortDescription:String;
		public var longDescription:String;
		public var ranking:Number;
		public var icon:String;
		public var subcategory:Subcategory;
		
		public function clone():Item
		{
			var clone:Item = new Item();
			clone.copyFrom( this );
			return clone;
		}
		
		public function copyFrom( item:Item ):void
		{
			id = item.id;
			name = item.name;
			price = item.price;
			showOrder = item.showOrder;
			shortDescription = item.shortDescription;
			longDescription = item.longDescription;
			ranking = item.ranking;
			icon = item.icon;
			subcategory = item.subcategory.clone();
			
		}
	}
}